import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';

export default {
	input: 'src/main.ts',
	output: {
		file:  'dist/bundle.js',
		format: 'es',
	},
	plugins: [
		typescript({
			tsconfig: './tsconfig.json',
			declaration: true,
			declarationDir: 'dist/types',
			rootDir: 'src',
		}),
		terser(),
	],
};
